'use strict';

define(['controllers', '../service/overviewService', 'stat/controller/qpsController', 'stat/controller/growController'], function (controllers) {
    controllers.collection.register('OverviewController', ['$scope', '$rootScope', '$routeParams', 'OverviewService', function ($scope, $rootScope, $routeParams, overviewService) {
        $scope.collectionId = $routeParams.id;

        $scope.init = function () {
            overviewService.query($routeParams.id, function (data) {
                $scope.collection = data.collection;
                $scope.replicas = data.replicas;
            })
        };

        $scope.init();
    }]);
});